/**
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.git-repository-shortlog-container {
    display: flex;
    align-items: flex-start;
}

.git-repository-shortlog-search {
    width: 300px;
    margin: 0 $tlp-spacing 0 0;
}

.git-repository-shortlog-results {
    width: 100%;

    > .git-repository-shortlog-day {
        margin: $tlp-spacing 0;

        &:first-child {
            margin: 0 0 $tlp-spacing;
        }
    }

}

.git-repository-shortlog-pagination {
    margin: $tlp-spacing;
}

.git-repository-shortlog-day {
    margin: $tlp-double-spacing $tlp-spacing $tlp-half-spacing;
}

.git-repository-commit-card {
    display: flex;
    position: relative;
    align-items: center;

    &.git-repository-commit-selected-for-diff {
        border: 1px solid $tlp-theme-color;
        border-radius: 0;
        box-shadow: inset 0 0 0 1px $tlp-theme-color;

        &:hover {
            border: 1px solid $tlp-theme-color;
        }

        > .selected-for-diff {
            display: block;
        }

    }
}

.selected-for-diff {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.git-repository-commit-card-avatar {
    flex: 0 0 auto;
    margin: 0 $tlp-half-spacing 0 0;
}

.git-repository-commit-card-info-title {
    margin: 0 0 $tlp-half-spacing;
}

.git-repository-commit-card-info-description {
    color: $tlp-ui-dimmed;
    font-size: 14px;
}

.git-repository-commit-card-hash {
    margin: 0 $tlp-spacing 0 0;
}

.git-repository-commit-card-info {
    flex: 1 1 auto;
    margin: 0 $tlp-spacing 0 0;
}

.git-repository-commit-card-info-metadata {
    color: $tlp-ui-dimmed;
    font-size: 14px;
    line-height: 20px;
}

.git-repository-commit-card-info-metadata-username,
.git-repository-commit-card-info-metadata-date {
    margin: 0 $tlp-half-spacing 0 0;
}

.git-repository-commit-card-info-metadata-date-icon {
    margin: 0 3px 0 0;
}

@media screen and (max-width: 900px) {
    .git-repository-shortlog-container {
        flex-direction: column;
    }

    .git-repository-shortlog-search {
        width: 100%;
        margin: 0 0 $tlp-spacing;
    }
}
